<?php

/*
 * |--------------------------------------------------------------------------
 * | Web Routes，基础路由
 * |--------------------------------------------------------------------------
 * |
 * | Here is where you can register web routes for your application. These
 * | routes are loaded by the RouteServiceProvider within a group which
 * | contains the "web" middleware group. Now create something great!
 * |
 */

use App\Core\Utils\TwHelper\Environment;

// 首页
Route::get('/', function () {
    if (Environment::isMobile()){
        return view('index-mobile');  //手机端
    }
    else{
        return view('index');  //电脑端
    }
})->name('index');